

# web应用程序测试工具
# Chrome驱动 chromedriver.storage.googleapis.com/index.html
# Firefox驱动  https://github.com/mozilla/geckodriver/releases
# Edge驱动 https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
# 版本 131.0.6778.265（正式版本） （64 位）

# 学习资料：https://www.selenium.dev/documentation/webdriver/browsers/firefox/
# https://www.selenium.dev/selenium/docs/api/py/index.html



# Firefox
from selenium import webdriver
browser = webdriver.Firefox()
url = 'https://www.jd.com'
browser.get(url)
html = browser.page_source
print(html)


# 谷歌
# from selenium import webdriver
# path = 'chromedriver.exe'
# browser = webdriver.Chrome(path)
# url = 'https://www.jd.com'
# browser.get(url)

























